﻿<views:MvxWindowsPage
    x:Class="Sidvall.UI.Uwp.Test.Views.Page2View"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:views="using:MvvmCross.Uwp.Views"
    xmlns:vms="using:Sidvall.UI.Uwp.Test.ViewModels"
    xmlns:maps="using:Windows.UI.Xaml.Controls.Maps" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid d:DataContext="{d:DesignInstance vms:Page2ViewModel, IsDesignTimeCreatable=True}" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="48"></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>

        <Border Grid.Row="0">
            <TextBlock Margin="50,0,0,0" FontSize="32">Page 2</TextBlock>
        </Border>

        <Button Grid.Row="1" Command="{Binding GoPageCommand}">Page 1</Button>
        
        <Grid Grid.Row="2">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>

            <Button x:Name="button" Grid.Row="0" Grid.Column="0" Content="Photo" HorizontalAlignment="Left" Margin="59,111,0,0" VerticalAlignment="Top" Width="75" Click="button_Click"/>
            <Button x:Name="gpsButton" Grid.Row="0" Grid.Column="1" Content="GPS" HorizontalAlignment="Left" Margin="59,111,0,0" VerticalAlignment="Top" Width="75" Click="gpsButton_Click"/>

            <StackPanel Grid.Row="1">
                <StackPanel Orientation="Horizontal">
                    <TextBlock>Latitude:</TextBlock>
                    <TextBlock x:Name="txtLatitude" />
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <TextBlock>Longitude:</TextBlock>
                    <TextBlock x:Name="txtLongitude" />
                </StackPanel>
            </StackPanel>
            <Image x:Name="mediaPreivew" Grid.Row="1" Grid.Column="0" Width="200" Height="200" />
            <maps:MapControl x:Name="map" Grid.Row="1" Grid.Column="1" LandmarksVisible="True" PedestrianFeaturesVisible="True" BusinessLandmarksVisible="True" 
                             TransitFeaturesEnabled="True" BusinessLandmarksEnabled="True"></maps:MapControl>
        </Grid>
    </Grid>
</views:MvxWindowsPage>
